package com.lxh.mp.builder;

import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;

/**
 * created by lanxinghua@2dfire.com on 2020/2/21
 */
public class VideoBuilder extends AbstractBuilder {
    @Override
    public WxMpXmlOutMessage build(String content, WxMpXmlMessage msg, WxMpService service) {
        WxMpXmlOutMessage outMessage = WxMpXmlOutMessage.VIDEO()
                .mediaId(content)
                .title("视频title")
                .description("视频描述")
                .fromUser(msg.getToUser())
                .toUser(msg.getFromUser())
                .build();
        System.out.println(outMessage.toXml());
        return outMessage;
    }
}
